package org.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 用户岗位关联表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "user_post")
public class UserPost {
    /**
     * 主键ID
     */
    @TableId(value = "up_id", type = IdType.INPUT)
    private Integer upId;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 岗位ID
     */
    @TableField(value = "post_id")
    private Integer postId;
}